<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/reset.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/text.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/fonts/ptsans/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/fluid.css" media="screen" />

<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/mws.style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/icons/icons.css" media="screen" />

<!-- Demo and Plugin Stylesheets -->
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/demo.css" media="screen" />

<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/colorpicker/colorpicker.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/jimgareaselect/css/imgareaselect-default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/fullcalendar/fullcalendar.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/fullcalendar/fullcalendar.print.css" media="print" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/tipsy/tipsy.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/sourcerer/Sourcerer-1.2.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/jgrowl/jquery.jgrowl.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/plugins/spinner/spinner.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/jui/jquery.ui.css" media="screen" />

<!-- Theme Stylesheet -->
<link rel="stylesheet" type="text/css" href="/lognadmin/Public/Admin/css/mws.theme.css" media="screen" />

<!-- JavaScript Plugins -->

<script type="text/javascript" src="/lognadmin/Public/Admin/js/jquery-1.7.1.min.js"></script>

<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jimgareaselect/jquery.imgareaselect.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jquery.dualListBox-1.3.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jgrowl/jquery.jgrowl.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jquery.filestyle.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/fullcalendar/fullcalendar.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jquery.dataTables.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="plugins/flot/excanvas.min.js"></script>
<![endif]-->
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/flot/jquery.flot.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/flot/jquery.flot.stack.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/colorpicker/colorpicker.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/tipsy/jquery.tipsy.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/sourcerer/Sourcerer-1.2.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jquery.placeholder.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jquery.validate.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/jquery.mousewheel.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/plugins/spinner/ui.spinner.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/js/jquery-ui.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/js/jquery-1.7.1.min.js"></script>

<script type="text/javascript" src="/lognadmin/Public/Admin/js/mws.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/js/demo.js"></script>
<script type="text/javascript" src="/lognadmin/Public/Admin/js/themer.js"></script>

<script type="text/javascript" src="/lognadmin/Public/Admin/js/demo.dashboard.js"></script>

<title>后台管理</title>

</head>

<body>
\<!-- Themer -->  
	<div id="mws-themer">
    	<div id="mws-themer-hide"></div>
        <div id="mws-themer-content">
        	<div class="mws-themer-section">
	        	<label for="mws-theme-presets">Presets</label> <select id="mws-theme-presets"></select>
            </div>
            <div class="mws-themer-separator"></div>
            <div class="mws-themer-section">
                <ul>
                    <li><span>呃呃呃</span> <div id="mws-base-cp" class="mws-cp-trigger"></div></li>
                    <li><span>Text Color</span> <div id="mws-text-cp" class="mws-cp-trigger"></div></li>
                    <li><span>Text Glow Color</span> <div id="mws-textglow-cp" class="mws-cp-trigger"></div></li>
                </ul>
            </div>
            <div class="mws-themer-separator"></div>
            <div class="mws-themer-section">
            	<ul>
                    <li><span>Text Glow Opacity</span> <div id="mws-textglow-op"></div></li>
                </ul>
            </div>
            <div class="mws-themer-separator"></div>
            <div class="mws-themer-section">
	            <button class="mws-button red small" id="mws-themer-getcss">Get CSS</button>
            </div>
        </div>
        <div id="mws-themer-css-dialog">
        	<div class="mws-form">
            	<div class="mws-form-row" style="padding:0;">
		        	<div class="mws-form-item">
                    	<textarea cols="auto" rows="auto" readonly="readonly"></textarea>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Themer End -->
    <!-- Header Wrapper -->
	<div id="mws-header" class="clearfix">
    
    	<!-- Logo Wrapper -->
    	<div id="mws-logo-container">
        	<div id="mws-logo-wrap">
            	<img src="/lognadmin/Public/Admin/images/mws-logo.png" alt="mws admin" />
			</div>
        </div>
        
        <!-- User Area Wrapper -->
        <div id="mws-user-tools" class="clearfix">
        
        	<!-- User Notifications -->
        	<div id="mws-user-notif" class="mws-dropdown-menu">
            	<a href="#" class="mws-i-24 i-alert-2 mws-dropdown-trigger">Notifications</a>
                <span class="mws-dropdown-notif">35</span>
                <div class="mws-dropdown-box">
                	<div class="mws-dropdown-content">
                        <ul class="mws-notifications">
                        	
                            <!-- Notification Content -->
                        	<li class="read">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="read">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                            <!-- End Notification Content -->
                            
                        </ul>
                        <div class="mws-dropdown-viewall">
	                        <a href="#">View All Notifications</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- User Messages -->
            <div id="mws-user-message" class="mws-dropdown-menu">
            	<a href="#" class="mws-i-24 i-message mws-dropdown-trigger">啊啊啊啊</a>
                <span class="mws-dropdown-notif">35</span>
                <div class="mws-dropdown-box">
                	<div class="mws-dropdown-content">
                        <ul class="mws-messages">
                        
                        	<!-- Message Content -->
                        	<li class="read">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="read">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                            <!-- End Messages -->
                            
                        </ul>
                        <div class="mws-dropdown-viewall">
	                        <a href="#">等等</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- User Functions -->
            <div id="mws-user-info" class="mws-inset">
            	<div id="mws-user-photo">
                	<img src="/lognadmin/Public/Admin/example/profile.jpg" alt="User Photo" />
                </div>
                <div id="mws-user-functions">
                    <div id="mws-username">
                        你好，admin
                    </div>
                    <ul>
                    	<li><a href="#">Profile</a></li>
                        <li><a href="#">修改密码</a></li>
                        <li><a href="index-2.html">退出登录</a></li>
                    </ul>
                </div>
            </div>
            <!-- End User Functions -->
        </div>
    </div>
     
    <div id="mws-wrapper">
        <div id="mws-sidebar-stitch"></div>
        <div id="mws-sidebar-bg"></div>
        <div id="mws-sidebar">
            
                        <div id="mws-navigation">
            	<ul>
                	<li class="active"><a href="<?php echo U("Index/dashboard");?>" class="mws-i-24 i-home">首页</a></li>
                	<li><a href="#" class="mws-i-24 i-chart">商品列表</a></li>
                	<!-- <li><a href="calendar.html" class="mws-i-24 i-day-calendar">Calendar</a></li>
                	<li><a href="files.html" class="mws-i-24 i-file-cabinet">File Manager</a></li> -->
                	<li><a href="<?php echo U("Table/index");?>" class="mws-i-24 i-table-1">列表</a></li>
                	<li>
                    	<a href="" class="mws-i-24 i-list">商品管理</a>
                        <ul>
                        	<li><a href="<?php echo U("Shops/index");?>">表单</a></li>
                        	<!-- <li><a href="form_elements.html">Elements</a></li> -->
                        </ul>
                    </li>
					<li>
						<a href="javascript:void(0)" class="mws-i-24 i-pacman">会员中心</a>
							<ul>
								<li><a href="/lognadmin/index.php/Admin/User/index">会员管理</a></li>
							</ul>
						
					</li>
                	<!-- <li><a href="widgets.html" class="mws-i-24 i-cog">Widgets</a></li> -->
                    <li>
                        <a href="#" class="mws-i-24 i-list">用户管理</a>
                        <ul>
                            <li><a href="<?php echo U("Users/index");?>">用户</a></li>
                            <li><a href="<?php echo U("Users/role");?>">角色</a></li>
                            <li><a href="<?php echo U("Users/department");?>">部门</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- End Navigation-->
        </div>
    
        
        <div id="mws-container" class="clearfix">
            <div class="container">


                <div class="mws-panel grid_8">
                    <div class="mws-panel-header">
                        <span class="mws-i-24 i-list">添加用户</span>
                    </div>
                    <div class="mws-panel-body">
                        <form class="mws-form" action="<?php echo U("Users/role_add");?>" method="post">
                            <input type="hidden" name="id" id="id" value="<?php echo ($id); ?>" />
                            <div class="mws-form-inline">
                                <div class="mws-form-row">
                                    <label>角色名称</label>
                                    <div class="mws-form-item small">
                                        <input type="text" name="rolename" class="mws-textinput" value="<?php echo ($vo["rolename"]); ?>" />
                                    </div>
                                </div>                                
                                <div class="mws-form-row">
                                    <label>上级角色</label>
                                    <div class="mws-form-item small">
                                        <select name="parentid">
                                            <option value="0">顶级角色</option>
                                            <?php if(is_array($rom)): $i = 0; $__LIST__ = $rom;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>"><?php echo ($vo["rolename"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select>
                                    </div>
                                </div>
                                <div class="mws-form-row">
                                    <label>状态</label>
                                    <div class="mws-form-item small">
                                        <select name="status">
                                            <option value="0">未启用</option>
                                            <option value="1">启用</option>
                                        </select>
                                    </div>
                                </div>
                                
                            </div>
                            <div class="mws-button-row">
                                <input type="submit" value="Submit" class="mws-button green" />
                            </div>
                        </form>
                    </div>
                </div>
  


        



    </div>

</body>
</html>